'''
# @Title:
# @Time : 2022/3/15 17:25
# @File : GetTooken.py
# @Software: PyCharm

'''
import requests


class GetTooken:


    def get_access_tooken(self):
        '''
        获取access_tooken
        :return:
        '''
        corpid = "ww3d5aaa86c9e639ba"
        corpsecret = "vetPDZF55FiQqc5oVW-iumcGJBFIINthyrnbsLkNOFI"
        url = 'https://qyapi.weixin.qq.com/cgi-bin/gettoken'
        params = {
            "corpid":corpid,
            "corpsecret":corpsecret
        }

        r = requests.get(url,params=params)
        return r.json()['access_token']

if __name__ == '__main__':
    g = GetTooken()
    g.get_access_tooken()